package struts.action;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import struts.form.ActionForm;
import struts.form.SomeForm;

public class SomeAction implements Action {

	public String execute(HttpServletRequest request,
			HttpServletResponse response, ActionForm form,
			Map<String, String> actionForward) {
		String url = "shibai";
		SomeForm sf = (SomeForm) form;
		if(sf.getA().equals("admin")){
			url = "chenggong";
		}
		return actionForward.get(url);
	}

}
